(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <stdlib.h>
long atol()
SYNOPSIS
const char * str

FUNCTION
Convert a string of digits into an integer.

INPUTS
str
The string which should be converted. Leading whitespace are ignored. The number may be prefixed by a '+' or '-'.
RESULT
The absolute value of j.

NOTES
EXAMPLE
// returns 1
atol ("  \t +1");

// returns 1
atol ("1");

// returns -1
atol ("  \n -1");

BUGS
SEE ALSO
labs(), fabs()
INTERNALS
HISTORY
12.12.1996 aros
New functions